package cn.ww.teach.knowledge.design.observe;

/**
 * Created by Wangwang on 2017/12/12.
 */
public class SendEmail implements Subscribe {

    public SendEmail(LoginHandler loginHandler) {
        loginHandler.toSub(this);
    }

    @Override
    public void goLoginEvent(User user) {
        System.out.println("send email success");
    }

}
